package com.hnevc.blog;

import java.util.ArrayList;
import java.util.Calendar;

public class Test {
	public static void main(String[] args){
		User user = new User("Tom");
		ArrayList<Blog> blogList = new ArrayList<>();
		BlogDB db = new BlogDB("163博客",blogList);
		Blog blog1 = new Blog(1,"博文1","今天下雨。。。。",Calendar.getInstance().getTime(),user);
		db.addBlog(blog1);
		
		db.addBlog(new Blog(2,"博文2","我爱变成...",Calendar.getInstance().getTime(),user));
		db.showAll();
		db.deleteBlog(1);
		db.showAll();
		
	}
}
